public class Demo24 {
    public static void main(String[] args) throws InterruptedException {
        Object locker1 = new Object();
        System.out.println("wait之前");
        synchronized(locker1) {
            locker1.wait();
        }
        System.out.println("wait之后");
    }
}
